package ai.plantdata.Behavior.mode.CommandPattern.classes;

/**
 * @Author: WangHui
 * @Date: 2020/12/23 11:12
 * @Description:
 */
public class Stock {
    private String name = "ABC";
    private int quantity = 10;

    public void buy(){
        System.out.println("Stoke [ Name: "+name +",Quantity:"
        +quantity + " ] bought");
    }

    public void sell(){
        System.out.println("Stock [ Name:" + name +",Quantity "+quantity+" ] sold");
    }
}
